home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_11_07 / unixfile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-06  |  423 b   |  16 lines

  1. /*** UnixFile Class Interface: unixfile.h ***/
  2.  
  3. #include <io.h>
  4. #include <fcntl.h>
  5. #include <sys/stat.h>
  6.  
  7. DCL_METHODS(UnixFile,File,(const char *nm,int flgs,int mod))
  8.     REDCL_METHOD(Seek,(long offset, int whence), long);
  9.     REDCL_METHOD(Read,(void *buffer, int nbytes), int);
  10.     REDCL_METHOD(Write,(void *buffer, int nbytes), int);
  11. END_METHODS
  12.  
  13. DCL_MEMBERS(UnixFile,File)
  14.    int descriptor;
  15. END_MEMBERS
  16.